package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;

import java.util.Date;

/**
 * 订单表 dingdan
 * 
 * @author chengenjiang
 * @date 2019-07-16
 */
public class Dingdan extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 订单Id */
	@Excel(name = "订单Id")
	private Integer dingdanId;
	/** 商品ID */
	private Integer shangPinId;
	/** 用户ID */
	private Integer huiYuanId;
	/** 数量 */
	@Excel(name = "数量")
	private Integer shuLiang;
	/** 总金额 */
	@Excel(name = "总金额")
	private Double smoney;
	/** 配送地址 */
	@Excel(name = "配送地址")
	private String adress;
	/** 订单备注 */
	@Excel(name = "订单备注")
	private String beizhu;
	/** 状态 */
	@Excel(name = "状态", readConverterExp = "0=已付,1=未付")
	private Integer status;
	/** 创建时间 */
	@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
	private Date createTime;
	/** 修改时间 */
	@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
	private Date updateTime;
	/** 扩展字段 */
	@Excel(name = "备注")
	private String attribute;

	public void setDingdanId(Integer dingdanId) 
	{
		this.dingdanId = dingdanId;
	}

	public Integer getDingdanId() 
	{
		return dingdanId;
	}
	public void setShangPinId(Integer shangPinId) 
	{
		this.shangPinId = shangPinId;
	}

	public Integer getShangPinId() 
	{
		return shangPinId;
	}
	public void setHuiYuanId(Integer huiYuanId) 
	{
		this.huiYuanId = huiYuanId;
	}

	public Integer getHuiYuanId() 
	{
		return huiYuanId;
	}
	public void setShuLiang(Integer shuLiang) 
	{
		this.shuLiang = shuLiang;
	}

	public Integer getShuLiang() 
	{
		return shuLiang;
	}
	public void setSmoney(Double smoney) 
	{
		this.smoney = smoney;
	}

	public Double getSmoney() 
	{
		return smoney;
	}
	public void setAdress(String adress) 
	{
		this.adress = adress;
	}

	public String getAdress() 
	{
		return adress;
	}
	public void setBeizhu(String beizhu) 
	{
		this.beizhu = beizhu;
	}

	public String getBeizhu() 
	{
		return beizhu;
	}
	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}

	public void setAttribute(String attribute) 
	{
		this.attribute = attribute;
	}

	public String getAttribute() 
	{
		return attribute;
	}
	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dingdanId", getDingdanId())
            .append("shangPinId", getShangPinId())
            .append("huiYuanId", getHuiYuanId())
            .append("shuLiang", getShuLiang())
            .append("smoney", getSmoney())
            .append("adress", getAdress())
            .append("beizhu", getBeizhu())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("attribute", getAttribute())
            .toString();
    }


	public Date getCreateTime() {
		return createTime;
	}


	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


	public Date getUpdateTime() {
		return updateTime;
	}


	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
}
